#ifndef _2_77_H
#define _2_77_H

int divide_power2(int x, int k){
    int result = x << (k - 1);
    result += 1;
    result <<= 1;
    return result;
}

#endif // 2_77_H

